package com.fjzzct.report.controller;


import com.fjzzct.report.domain.BaseEntity;

import java.util.Date;

/**
 * Created by cwb on 2015/7/6.
 */

public class BaseController {

    public BaseController() {

    }

    public <T extends BaseEntity> void SetDefaultValue(T entry) {
        //LoginUser l=lg;
        entry.setModifyTime(new Date());
        entry.setEnabled(true);
        entry.setDeleteMark(false);
    }

    public <T extends BaseEntity> void SetCreateInfo(T entry) {
        entry.setCreateTime(new Date());
    }
}
